package com.xxx.blog.mapper;

import com.xxx.blog.entity.Books;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author WangXJ
 * @since 2021-08-08
 */
public interface BooksMapper extends BaseMapper<Books> {

    @Select("select * from books ORDER  BY id desc limit 4")
    List<Books> findNewBook();
}
